package com.ruoyi.common.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * oss配置管理对象 a_oss
 * 
 * @author ruoyi
 * @date 2024-05-16
 */
public class AOss extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 表题 */
    @Excel(name = "表题")
    private String title;

    /** 类型（1阿里云2腾讯云3本地储存） */
    @Excel(name = "类型", readConverterExp = "1=阿里云2腾讯云3本地储存")
    private String currentType;

    /** 当前使用 */
    @Excel(name = "当前使用")
    private Boolean apply;

    /** appid */
    @Excel(name = "appid")
    private String appId;

    /** appkey */
    @Excel(name = "appkey")
    private String appKey;

    /** secret */
    @Excel(name = "secret")
    private String appSecret;

    /** 桶名称 */
    @Excel(name = "桶名称")
    private String bucket;

    /** 区域 */
    @Excel(name = "区域")
    private String region;

    /** 路径 */
    @Excel(name = "路径")
    private String url;

    /** 逻辑删除 */
    private Long delFlag;


    /** 排序 */
    @Excel(name = "排序")
    private String numSoft;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setCurrentType(String currentType) 
    {
        this.currentType = currentType;
    }

    public String getCurrentType() 
    {
        return currentType;
    }
    public void setApply(Boolean apply)
    {
        this.apply = apply;
    }

    public Boolean getApply()
    {
        return apply;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }
    public void setAppKey(String appKey) 
    {
        this.appKey = appKey;
    }

    public String getAppKey() 
    {
        return appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getBucket() {
        return bucket;
    }

    public void setBucket(String bucket) {
        this.bucket = bucket;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setDelFlag(Long delFlag)
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }
    public void setNumSoft(String numSoft)
    {
        this.numSoft = numSoft;
    }

    public String getNumSoft() 
    {
        return numSoft;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("currentType", getCurrentType())
            .append("apply", getApply())
            .append("appId", getAppId())
            .append("appKey", getAppKey())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .append("numSoft", getNumSoft())
            .toString();
    }
}
